package com.alibaba.dubbo.demo.provider;

import java.util.List;

import com.alibaba.dubbo.demo.SysBackuppolicyInterface;
import com.alibaba.dubbo.demo.bean.PageBean;
import com.alibaba.dubbo.demo.bean.SysBackuppolicy;
import com.alibaba.dubbo.demo.provider.dao.impl.SysBackuppolicyDaoImpl;

public class SysBackuppolicyServiceImpl implements SysBackuppolicyInterface {

	SysBackuppolicyDaoImpl sysBackuppolicyDao;
	public SysBackuppolicyDaoImpl getSysBackuppolicyDao() {
		return sysBackuppolicyDao;
	}

	public void setSysBackuppolicyDao(SysBackuppolicyDaoImpl sysBackuppolicyDao) {
		this.sysBackuppolicyDao = sysBackuppolicyDao;
	}

	@Override
	public boolean saveBackupPolicy(SysBackuppolicy policy) {
		// TODO Auto-generated method stub
		return sysBackuppolicyDao.saveBackupPolicy(policy);
	}

	@Override
	public boolean updateBackupPolicy(SysBackuppolicy policy) {
		// TODO Auto-generated method stub
		return sysBackuppolicyDao.updateBackupPolicy(policy);
	}

	@Override
	public boolean deleteBackupPolicy(SysBackuppolicy policy) {
		// TODO Auto-generated method stub
		return sysBackuppolicyDao.deleteBackupPolicy(policy);
	}

	@Override
	public boolean deleteUnvalidBackupPolicy() {
		// TODO Auto-generated method stub
		return sysBackuppolicyDao.deleteUnvalidBackupPolicy();
	}

	@Override
	public PageBean queryAllBackupPolicy(PageBean pageBean, boolean valid) {
		// TODO Auto-generated method stub
		return sysBackuppolicyDao.queryAllBackupPolicy(pageBean, valid);
	}

	@Override
	public List<SysBackuppolicy> queryAllBackupPolicyList(boolean valid) {
		// TODO Auto-generated method stub
		return sysBackuppolicyDao.queryAllBackupPolicyList(valid);
	}

	@Override
	public SysBackuppolicy queryOneBackupPolicy(int id) {
		// TODO Auto-generated method stub
		return sysBackuppolicyDao.queryOneBackupPolicy(id);
	}

}
